<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Print.html">
<link rel="next" href="Semantic.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Commands" rel="Chapter" href="Commands.html">
<link title="Declaration" rel="Chapter" href="Declaration.html">
<link title="Exceptions" rel="Chapter" href="Exceptions.html">
<link title="Expressions" rel="Chapter" href="Expressions.html">
<link title="Intermediate" rel="Chapter" href="Intermediate.html">
<link title="Lexer" rel="Chapter" href="Lexer.html">
<link title="Main" rel="Chapter" href="Main.html">
<link title="Parser" rel="Chapter" href="Parser.html">
<link title="Print" rel="Chapter" href="Print.html">
<link title="Print_syntaxtree" rel="Chapter" href="Print_syntaxtree.html">
<link title="Semantic" rel="Chapter" href="Semantic.html">
<link title="Subroutines" rel="Chapter" href="Subroutines.html">
<link title="Syntaxtree" rel="Chapter" href="Syntaxtree.html">
<link title="Target" rel="Chapter" href="Target.html"><title>Print_syntaxtree</title>
</head>
<body>
<div class="navbar"><a href="Print.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Semantic.html">Next</a>
</div>
<center><h1>Module <a href="type_Print_syntaxtree.html">Print_syntaxtree</a></h1></center>
<br>
<pre><span class="keyword">module</span> Print_syntaxtree: <code class="code">sig</code> <a href="Print_syntaxtree.html">..</a> <code class="code">end</code></pre>Contains the functions to print the Abstract Syntax Tree<br>
<hr width="100%">
<br>
Contains the functions to print the Abstract Syntax Tree<br>
<pre><span class="keyword">val</span> <a name="VALprint_ide"></a><a href="code_VALPrint_syntaxtree.print_ide.html">print_ide</a> : <code class="type"><a href="Syntaxtree.html#TYPEide">Syntaxtree.ide</a> -> string</code></pre><div class="info">
Prints an ide<br>
</div>
<pre><span class="keyword">val</span> <a name="VALprint_string_list"></a><a href="code_VALPrint_syntaxtree.print_string_list.html">print_string_list</a> : <code class="type">string list -> string</code></pre><div class="info">
Prints a list of string<br>
</div>
<div class="param_info"><code class="code">al</code> : The string list to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_aexp"></a><a href="code_VALPrint_syntaxtree.print_aexp.html">print_aexp</a> : <code class="type"><a href="Syntaxtree.html#TYPEaexp">Syntaxtree.aexp</a> -> string</code></pre><div class="info">
Prints arithmetical expressions<br>
</div>
<div class="param_info"><code class="code">a</code> : The aexp to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_bexp"></a><a href="code_VALPrint_syntaxtree.print_bexp.html">print_bexp</a> : <code class="type"><a href="Syntaxtree.html#TYPEbexp">Syntaxtree.bexp</a> -> string</code></pre><div class="info">
Prints boolean expressions<br>
</div>
<div class="param_info"><code class="code">b</code> : The bexp to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_lexp"></a><a href="code_VALPrint_syntaxtree.print_lexp.html">print_lexp</a> : <code class="type"><a href="Syntaxtree.html#TYPElexp">Syntaxtree.lexp</a> -> string</code></pre><div class="info">
Prints left expressions<br>
</div>
<div class="param_info"><code class="code">l</code> : The lexp to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_cmd"></a><a href="code_VALPrint_syntaxtree.print_cmd.html">print_cmd</a> : <code class="type"><a href="Syntaxtree.html#TYPEcmd">Syntaxtree.cmd</a> -> string</code></pre><div class="info">
Prints commands<br>
</div>
<div class="param_info"><code class="code">c</code> : The command to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_bType"></a><a href="code_VALPrint_syntaxtree.print_bType.html">print_bType</a> : <code class="type"><a href="Syntaxtree.html#TYPEbType">Syntaxtree.bType</a> -> string</code></pre><div class="info">
Prints basic Type<br>
</div>
<div class="param_info"><code class="code">b</code> : The basic Type to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_gType"></a><a href="code_VALPrint_syntaxtree.print_gType.html">print_gType</a> : <code class="type"><a href="Syntaxtree.html#TYPEgType">Syntaxtree.gType</a> -> string</code></pre><div class="info">
Prints generic Type<br>
</div>
<div class="param_info"><code class="code">g</code> : The generic Type to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_dec"></a><a href="code_VALPrint_syntaxtree.print_dec.html">print_dec</a> : <code class="type"><a href="Syntaxtree.html#TYPEdec">Syntaxtree.dec</a> -> string</code></pre><div class="info">
Prints a declaration<br>
</div>
<pre><span class="keyword">val</span> <a name="VALprint_param"></a><a href="code_VALPrint_syntaxtree.print_param.html">print_param</a> : <code class="type"><a href="Syntaxtree.html#TYPEparam">Syntaxtree.param</a> -> string</code></pre><div class="info">
Prints Parameters of functions/procedures<br>
</div>
<pre><span class="keyword">val</span> <a name="VALprint_ret"></a><a href="code_VALPrint_syntaxtree.print_ret.html">print_ret</a> : <code class="type"><a href="Syntaxtree.html#TYPEret">Syntaxtree.ret</a> -> string</code></pre><div class="info">
Prints the return value of functions<br>
</div>
<pre><span class="keyword">val</span> <a name="VALprint_proc"></a><a href="code_VALPrint_syntaxtree.print_proc.html">print_proc</a> : <code class="type"><a href="Syntaxtree.html#TYPEproc">Syntaxtree.proc</a> -> string</code></pre><div class="info">
Prints The definition of procedures and functions<br>
</div>
<div class="param_info"><code class="code">s</code> : The procedure/function to print</div>
<pre><span class="keyword">val</span> <a name="VALprint_program"></a><a href="code_VALPrint_syntaxtree.print_program.html">print_program</a> : <code class="type"><a href="Syntaxtree.html#TYPEprogram">Syntaxtree.program</a> -> Pervasives.out_channel -> unit</code></pre><div class="info">
Prints the Abstract Syntax Tree<br>
</div>
<div class="param_info"><code class="code">p</code> : The AST</div>
<div class="param_info"><code class="code">out</code> : The output channel</div>
</body></html>